home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000006_icon-group-sender _Mon Apr 27 20:38:31 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id UAA27967
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 27 Apr 1998 20:38:31 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA08915; Mon, 27 Apr 1998 20:38:28 -0700
Message-Id: <3.0.5.32.19980427182410.007a92d0@doors>
X-Sender: bgbauer#alpha.delta.edu@doors
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Mon, 27 Apr 1998 18:24:10 -0700
To: swampler@noao.edu (Steve Wampler)
From: Scissors <bgbauer@alpha.delta.edu>
Subject: Re: A few basic questions
Cc: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
In-Reply-To: <swampler-9803271524.AA001226837@orpheus.gemini.edu>
References: <3.0.5.32.19980426052832.007a9be0@doors>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1168
At 08:24 AM 4/27/98 -0700, you wrote:
>Try any of the following:
>
>var := expr | fail
>
>if not (var := expr) then fail
>
>> Also is it acceptable to use "if expr then expr else expr" all on the same
>> line? Its getting harder to move around in my code as it gets longer
with >> it all '{' and '}'d on multiple lines.
>
>Acceptable, but not considered good practice.
Well, thats what I expected, but I'd hoped I was using an older form. : /
What about this example:
if expression then {
expression
expression }
Saving one line with the last '}' being moved up?
>
>> Also what are string images used for?
>
>Uh, string image of what? String images of different things have different
>uses.
Well, for example one of the functions in icon is:
image (x) : s -- produce string image
Produces a string image of x.
Under what circumstances would this be used? I realise (I think) what
an image is, but im not sure why I wouldnt need an image of an object, if I
have the object itself?
There is also an IPL procedure:
fullimag.icn
Procedures to produce complete image of structured data
Or am I better of not worrying about that for now? : )